<div class="col-sm-12 col-md-12" ng-show="current == 0">
	<div class="row">
		<div class="col-sm-12 col-md-12">
			<form class="form-custom clearfix">
				<div class="col-sm-4 col-md-4">
					<label> 名称</label>
					<input ng-model="params.dataDefName" class="form-control" type="text" placeholder="请输入 数据结构定义名称" />
				</div>
				<div class="col-sm-3 col-md-3">
					<label>创建日期</label>
					<div data-datetimepicker="range" range start="params.startTime" end="params.endTime"></div>
				</div>
				<div class="col-sm-4 col-md-4">
					<label>&nbsp;</label>
					<button class="btn btn-info btn-custom" type="button" ng-click="refresh('first' , true)">查询</button>
					<button class="btn btn-primary btn-custom" type="button" ng-click="toNextPage(1);addNew()">新增</button>
					<button class="btn btn-info btn-custom" type="button" ng-click="resetQuery()">重置</button>
				</div>
			</form>
		</div>
	</div>

	<table class="table table-striped table-bordered table-condensed index-center  table-costom">
		<thead>
			<tr>
				<th>序号</th>
				<th class="col-span-p20">名称</th>
				<th>描述</th>
<!-- 				<th>创建人</th> -->
				<th class="col-datetime-1">创建时间</th>
				<th class="col-opt-1">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="rowlink" ng-repeat="item in limitArr">
				<td>{{pageNo*limit+$index+1}}</td>
				<td>{{item.dataDefName}}</td>
				<td>{{item.dataDefDesc}}</td>
<!-- 				<td>{{item.createUserName}}</td> -->
				<td>{{item.createDate|date:'yyyy-MM-dd HH:mm'}}</td>
				<td><a href="javascript:" data-toggle="modal" data-target="#remove" ng-click="toRemove(item.dataDefId)" ng-if="item.dataSetCount==0">删除</a>
					<a href="javascript:" data-toggle="modal" data-target="#see" ng-click="preview(item)">查看</a> 
					<a href="javascript:" ng-click="edit(item)" ng-if="item.dataSetCount==0">修改</a></td>
			</tr>
		</tbody>
	</table>

<div data-remote-paging="pager" data-params="params" data-refresh="refresh" data-current="pageNo" data-total="total"
					data-data="limitArr" data-limit="limit"></div>
</div>

<!-- 查看 -->
<div class="modal fade" id="see" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog" style="width: 800px;">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">数据结构定义信息查看</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-sm-12 col-md-12">
						<form class="form-horizontal">
								<div class="form-group">
									<label class="control-label col-sm-2">名称</label>
									<div class="col-sm-10">
										<p class="form-control-static">{{previewData.dataDefName}}</p>
									</div>
								</div>
								<div class="form-group">
									<label class="control-label col-sm-2">描述</label>
									<div class="col-sm-10">
										<p class="form-control-static break-all">{{previewData.dataDefDesc}}</p>
									</div>
								</div>
								<table class="table table-striped table-bordered table-condensed index-center table-costom">
									<thead>
										<tr>
											<th>序号</th>
<!-- 											<th>列名</th> -->
											<th>字段名</th>
											<th>数据类型</th>
											<th>字段长度</th>
											<th>概念模型</th>
										</tr>
									</thead>
									<tbody>
										<tr class="rowlink" ng-repeat="item in list">
											<td>{{$index+1}}</td>
<!-- 											<td>{{item.columnName}}</td> -->
											<td>{{item.columnDesc}}</td>
											<td>{{item.dataType}}</td>
											<td>{{item.length}}</td>
											<td>{{item.conceptModelDesc}}</td>
										</tr>
									</tbody>
								</table>
						</form>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
			</div>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div>
<!-- /.modal -->

<!-- 删除对话框 -->
<div class="modal fade" id="remove" tabindex="-1" role="dialog" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title">删除数据</h4>
			</div>
			<div class="modal-body">确认要删除此数据么？</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-danger" data-dismiss="modal" ng-click="remove()">确认删除</button>
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
			</div>
		</div>
		<!-- /.modal-content -->
	</div>
	<!-- /.modal-dialog -->
</div>
<!-- /.modal -->

<div ng-include="'templates/dataIntegration/defined-extends.html'"></div>